console.log("外观模式");
import TodoList from "./TodoList/index.js";
((doc) => {
  const oApp = doc.querySelector("#app");
  const todoData = [
    {
      id: 1,
      content: "123",
      completed: false,
    },
    {
      id: 2,
      content: "234",
      completed: false,
    },
    {
      id: 3,
      content: "345",
      completed: true,
    },
  ];
  const init = () => {
    const todoList = new TodoList(oApp, todoData);
    todoList.init()
  };

  init();
})(document);
